import 'package:fluro/fluro.dart';
import 'package:go/example/home_page.dart';
import 'package:go/example/publicclass_page.dart';

class MyPageRouter {

  static String homePage = "/home";
  static String openClassPage = "/home/openclass";
  
  void initRouter(Router router) {

    router.define(homePage, handler: Handler(handlerFunc: (_, params) => HomePage()));
    // router.define(openClassPage, handler: Handler(handlerFunc: (_, params) => PublicClassPage()));
    router.define(openClassPage, handler: Handler(handlerFunc: (_, params) {
      
     String string = params['message']?.first;
     return PublicClassPage(message: string);
     
    }));
  }
}